package com.ruoyi.ldzlsc.controller;
import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.ldzlsc.domain.dto.WorkReportDto;
import com.ruoyi.ldzlsc.service.IScWorkReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 生产报工Controller
 *
 * @author ldzl
 */
@RestController
@RequestMapping("/sc/workReport")
public class ScWorkReportController extends BaseController {
    @Autowired
    private IScWorkReportService workReportService;

    /**
     * 生产报工
     */
    @PostMapping("/finish")
    public AjaxResult finish(@RequestBody WorkReportDto workReportDto)
    {
        return toAjax(workReportService.report(workReportDto));
    }
} 